import Toast from 'tdesign-miniprogram/toast/index';

export function showSuccessToast(page: any, msg: string) {
  Toast({
    context: page,
    selector: '#t-toast',
    message: msg,
    theme: 'success',
    direction: 'column',
  });
}

export function showErrorToast(page: any, msg: string) {
  Toast({
    context: page,
    selector: '#t-toast',
    message: msg,
    theme: 'error',
    direction: 'column',
  });
}